home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / DirectX / dxsdk_oct2004.exe / dxsdk.exe / Samples / C++ / DirectInput / DIConfig / defines.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-09-27  |  1.3 KB  |  61 lines

  1. //-----------------------------------------------------------------------------
  2. // File: defines.h
  3. //
  4. // Desc: Contains all defined symbols needed for the UI.
  5. //
  6. // Copyright (C) Microsoft Corporation. All Rights Reserved.
  7. //-----------------------------------------------------------------------------
  8.  
  9. #ifndef __CFGUI_DEFINES_H__
  10. #define __CFGUI_DEFINES_H__
  11.  
  12.  
  13. // if either UNICODE define exists, make sure both do
  14. #ifdef UNICODE
  15. #ifndef _UNICODE
  16. #define _UNICODE
  17. #endif
  18. #endif
  19.  
  20. #ifdef _UNICODE
  21. #ifndef UNICODE
  22. #define UNICODE
  23. #endif
  24. #endif
  25.  
  26.  
  27.  
  28. // make sure we have the correct debug flags defined,
  29. // thus making sure assert actually works with build
  30. #if defined(DBG) || defined(DEBUG)
  31.     #ifdef NDEBUG
  32.         #undef NDEBUG
  33.     #endif
  34. #else
  35.     #ifndef NDEBUG
  36.         #define NDEBUG
  37.     #endif
  38. #endif
  39.  
  40. // disable tracing if we don't want debug info
  41. #ifdef NDEBUG
  42.     #ifndef NTRACE
  43.         #define NTRACE
  44.     #endif
  45. #endif
  46.  
  47.  
  48. // settings...
  49. //#define CFGUI__FORCE_NON_NULL_WSZUSERNAMES
  50. //#define CFGUI__TRACE_ACTION_FORMATS
  51. //#define CFGUI__ALLOW_USER_ACTION_TREE_BRANCH_MANIPULATION
  52. #define CFGUI__UIGLOBALS_HAS_CURUSER
  53. #define CFGUI__COMPAREACTIONNAMES_CASE_INSENSITIVE
  54.  
  55. #define __CFGUI_TRACE__TO_DEBUG_OUT
  56. //#define __CFGUI_TRACE__TO_FILE
  57.  
  58.  
  59.  
  60. #endif //__CFGUI_DEFINES_H__
  61.